<?php

	$sql = "SELECT cat_id, cat_name FROM tbl_category";
	
	$result     = dbQuery($sql);
?>


<?php 

	while ($row = dbFetchAssoc($result)) 
	{
		extract($row);
?>

		<li><a href="gallery.php?catId=<?php echo $cat_id; ?>"><?php echo $cat_name; ?></a></li>
<?php
	}
?>
